
<template>
  <div>
    <my-table :data="data" :columns="columns"></my-table>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
const data = ref([
  {
    name: "张三",
    height: 1.75,
    weight: 75
  },
  {
    name: "李四",
    height: 1.62,
    weight: 45
  }
])
const columns = [
  { prop: "name", label: "姓名" },
  { prop: "height", label: "身高" },
  { prop: "weight", label: "体重" }
]
</script>


